@import 'scss-imports/variables';

:host ::ng-deep {
  ix-missing-access-wrapper {
    width: 100%;
  }

  a {
    color: var(--primary);
    text-decoration: underline;
  }

  p,
  .empty-message {
    margin: 10px 0;
  }
}

:host {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  height: initial;
  justify-content: center;
  margin: 8px;
  padding: 8px;
}

.empty-page {
  align-items: center;
  color: var(--fg2);
  display: flex;
  gap: 16px;
  margin: auto 24px;
  max-width: 100%;

  @media (max-width: $breakpoint-sm) {
    display: block;
    text-align: center;
  }

  .icon-div {
    text-align: center;

    .icon {
      align-items: center;
      color: var(--fg2);
      display: inline-flex;
      font-size: 50px;
      height: 50px;
      opacity: 0.1;
      width: auto;

      &.logo {
        font-size: unset;
        height: 40px;
        margin: 10px 0;
      }
    }
  }

  .empty-title {
    font-size: inherit;
    margin-bottom: 10px;
  }

  .empty-message {
    font-size: 0.875rem;
    line-height: 28px;
    margin-bottom: 10px;
  }


  &.compact {
    margin: 0;
  }

  &.errors {
    .icon-div {
      margin: 16px;
    }

    .icon-div .icon {
      color: var(--red);
      opacity: 1;
    }
  }

  &.large {
    .icon-div {
      .icon {
        align-items: center;
        display: inline-flex;
        font-size: 100px;
        height: 100px;
        width: 100px;

        &.logo {
          font-size: unset;
          height: 80px;
          margin: 20px 0;
        }
      }
    }

    .empty-title {
      font-size: 16px;
      margin-bottom: 20px;
    }
  }

  button.empty-action {
    margin-top: 15px;
  }}
